package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface CrawlerService {

	public Crawler saveCrawler(Crawler crawler);

	public Set<Crawler> loadCrawlers();

	public Set<Crawler> loadReferenceCrawlers(Set<Crawler> crawlers);

	public Set<Crawler> loadCrawlersByIdSet(Set<Integer> crawlersId);

	public Map<String, ?> loadCrawlerObjectReferencedSet(Crawler crawler);

	public Map<String, ?> loadCrawlerClassReferencedSet(Crawler crawler);

	public void deleteCrawler(Crawler crawler);

	public void deleteCrawlers(Set<Integer> deleteCrawlersId);

	public List<Crawler> findAllCrawlers(Integer startResult, Integer maxRows);

	public Crawler findCrawlerByPrimaryKey(Integer id);

	public Integer countCrawlers();

	public Integer countCrawlers(CmiPagination page);

	public Integer countCrawlersByName(String queryName);

	public Integer countCrawlersByDetachedCriteria(CmiPagination page);

}
